{{csrf_field()}}
<div class="layui-form-item" style="display: flex;align-items: center;">
    <label for="" class="layui-form-label">所属小区</label>
    <div class="layui-input-inline">
         <span>{{$community->title}}</span>
         <input type="hidden" name="community_id" value="{{ $community->id }}">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">成交户型*</label>
    <div class="layui-input-inline">
        <input type="text" name="apartment" value="{{$data->apartment??old('apartment')}}" lay-verify="required" placeholder="户型名称" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">签约时间*</label>
    <div class="layui-input-inline">
        <input type="text" name="signing_time" value="{{$data->signing_time??old('signing_time')}}" id="signing_time" lay-verify="required" placeholder="签约时间" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">面积*</label>
    <div class="layui-input-inline">
        <input type="text" name="area" value="{{$data->area??old('area')}}" lay-verify="required" placeholder="户型面积" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-word-aux">㎡</div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">价格*</label>
    <div class="layui-input-inline">
        <input type="text" name="price" value="{{$data->price??old('price')}}" lay-verify="required" placeholder="成交价格" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-word-aux">万元</div>
</div>
<div class="layui-form-item">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formDemo">确 认</button>
        @if(isset($community) && $community_id>0)
        <a class="layui-btn" href="/admin/community_data?community_id={{$community_id}}">返回</a>
        @else
        <a class="layui-btn" href="{{route('admin.community')}}" >返 回</a>
        @endif
    </div>
</div>